import Company from '@/components/Company'
import SocialRecruit from '@/components/SocialRecruit'
import SchoolRecruit from '@/components/SchoolRecruit'
import InternshipRecruit from '@/components/InternshipRecruit'
import ResumeManage from '@/components/ResumeManage'
import ResumeEdit from '@/components/ResumeEdit'
import RecruitInfo from '@/components/RecruitInfo'


/**
 * 统一的路由信息
 */
const routes = [
  {
    path: '/social_recruit',
    name: 'social_recruit',
    component: SocialRecruit,
    label: '社会招聘',
    grep: 'member',
    menu: {
      level: 1,
      icon: 'ios-people'
    }
  },{
    path: '/school_recruit',
    name: 'school_recruit',
    component: SchoolRecruit,
    label: '校园招聘',
    grep: 'member',
    menu: {
      level: 1,
      icon: 'ios-people'
    }
  },{
    path: '/internship_recruit',
    name: 'internship_recruit',
    component: InternshipRecruit,
    label: '实习生招聘',
    grep: 'member',
    menu: {
      level: 1,
      icon: 'ios-people'
    }
  },{
    path: '/company',
    name: 'company',
    component: Company,
    label: '关于公司',
    grep: 'member',
    menu: {
      level: 1,
      icon: 'ios-infinite'
    }
  },{
    path: '/user',
    name: 'user',
    label: '个人中心',
    grep: 'member',
    menu: {
      level: 2,
      child: ['sign_up','sign_in','resume_manage', 'recruit_info','sign_out'],
      icon: 'person',
      parent: 'index'
    }
  },{
    path: '/user/sign_up',
    name: 'sign_up',
    // component: SignUp,
    label: '注册',
    grep: 'visitor',
    menu: {
      icon: 'person',
      parent: 'user'
    }
  },{
    path: '/user/sign_in',
    name: 'sign_in',
    // component: SignIn,
    label: '登录',
    grep: 'visitor',
    menu: {
      icon: 'person',
      parent: 'user'
    }
  },{
    path: '/user/resume_manage',
    name: 'resume_manage',
    component: ResumeManage,
    label: '简历管理',
    grep: 'member',
    menu: {
      icon: 'person',
      parent: 'user'
    }
  },{
    path: '/user/recruit_info',
    name: 'recruit_info',
    component: RecruitInfo,
    label: '应聘进展',
    grep: 'member',
    menu: {
      icon: 'person',
      parent: 'user'
    }
  },{
    path: '/user/sign_out',
    name: 'sign_out',
    // component: SignOut,
    label: '退出',
    grep: 'member',
    menu: {
      icon: 'person',
      parent: 'user'
    }
  },{
    path: '/user/resume_edit',
    name: 'resume_edit',
    component: ResumeEdit,
    label: '简历编辑',
    grep: 'member'
  }
]



export default {
  routes: routes
}
